home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wtek0693.zip / OOPALLEY.ZIP / RANDOM.H < prev    next >
C/C++ Source or Header  |  1993-04-27  |  706b  |  26 lines

  1. #ifndef RANDOM_H
  2. #define RANDOM_H
  3.  
  4. #include "object.h"
  5.  
  6. extern const Class class_Random;
  7.  
  8. ////////////////////////////////////////////////////////////
  9. // class Random (declaration)
  10. ////////////////////////////////////////////////////////////
  11. class Random: public Object {
  12.     unsigned long    randx;
  13. public:
  14.                 // constructors, destructors
  15.                 Random();
  16.                 Random(long seed)       { randx = seed; }
  17.  
  18.     float                   next() const;
  19.     virtual Object*         copy() const;
  20.     virtual void            deepenShallowCopy();
  21.     virtual const Class*    isA() const;
  22.     virtual void            printOn(ostream& strm) const;
  23. };
  24.  
  25. #endif
  26.